<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>在线挂号</title>
		<link href="../../plugins/mui/mui.min.css" rel="stylesheet"/>
		<link rel="stylesheet" href="../../css/excutive_housekeeper/registration.css"/>
		<script src="../../js/statistics.js"></script>
		<script src="../../js/fontset.js"></script>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">在线挂号</h1>
		</header>
		<div class="mui-content">
		    <ul class="mui-table-view">
		    	<li class="mui-table-view-cell">
	                <a class="mui-navigate-right" data-href="registration_chineseHospital.html" >
	                	<i class="icon icon-ch"></i>
	                    中医院预约挂号
	                </a>
	            </li>
	            <li class="mui-table-view-cell">
	                <a class="mui-navigate-right" data-href="registration_hospital.html" >
	                	<i class="icon icon-hp"></i>
                      	人民医院预约挂号
	                </a>
	            </li> 
	        </ul>
		</div>
	</body>
	<script src="../../plugins/mui/mui.min.js"></script>
	<script src="../../js/life_housekeeper/windowTitleView.js"></script>
	<script>
		mui.init();
		mui.plusReady(function(){
			mui(".mui-table-view-cell").on('tap','a',function(){
				var _this = this,
				href = _this.getAttribute("data-href"),
				title = _this.innerText.trim(),
				id = _this.getAttribute("data-id");
				if(!href){
					return;
				}
				if(href.indexOf('http')== -1 && href.indexOf('https') == -1){
					mui.openWindow({
						url:href,
						id:id || href
					});
				}else{
					var isStorage = _this.getAttribute("data-isStorage"),
						life = _this.getAttribute("data-life"),
						viewOptions = {
							url:'../life_housekeeper/detail.html',
							id:'detail.html'
						},
						extras = {
							title:title,
							link:href,
							life:life,
							isStorage:isStorage
						},
						titleOptions = {
							title:title,
							backImg:'whiteBack'
						}
						mui.addTitleView(viewOptions,extras,titleOptions);
				}
			})
		})
	</script>
</html>
